package com.aphrodite.ui.widgets.browser;

import javax.microedition.lcdui.Graphics;

import com.aphrodite.xml.XMLReader;

final class P extends BrowserElement {

	int fgColor;
	String text;

	// static Font font = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN,
	// Font.SIZE_SMALL);

	P() {

	}

	P(String text) {
		this.text = text;
		this.height = HTMLBrowser.currentFont.getHeight();
		this.width = HTMLBrowser.currentFont.stringWidth(text);
	}

	void draw(Graphics g) {
		g.setFont(g.getFont());
		g.setColor(fgColor);
		g.drawString(text, x, y, 0);

	}

	void process(XMLReader reader) {

	}

}
